package bio.demo4;

/**
 * @author charwayH
 */
public class Test {
    public static void main(String[] args) {
        String a = "a";
        String b = "a";
        System.out.println(a == b);
        String c = new String("a");
        System.out.println(a == c);
        System.out.println(c.equals(a));

        System.out.println("------");
        a = "通话";
        b = "重地";
        System.out.println(a.hashCode());
        System.out.println(b.hashCode());



        System.out.println(Math.round(-1.5));
        System.out.println(Math.round(1.5));
    }
}
